package com.smartum.mpr.client.services;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.smartum.mpr.shared.Category;

import java.io.IOException;
import java.util.List;

/**
 */
@RemoteServiceRelativePath("itemsService")
public interface ItemsService extends RemoteService {
    List<Category> getCategories() throws IOException;

    List<Category> addCategory(String nameCategory) throws IOException;

    List<Category> editCategory(String id, String nameCategory) throws IOException;

    List<Category> deleteCategory(String id) throws IOException;

    List<Category> addSubCategory(String categoryId, String nameSubcategory) throws IOException;

    List<Category> editSubCategory(String id, String nameSubcategory) throws IOException;

    List<Category> deleteSubCategory(String id) throws IOException;


}
